import React from "react";
class EmptyPage extends React.Component {
  render() {
    return (
      <div>
        <input
          ref="textInput"
          onChange={(e) => {
            console.log(this.refs.textInput);
            setTimeout(function () {
              e.scrollIntoViewIfNeeded();
              console.log("scrollIntoViewIfNeeded");
            }, 400);
          }}
          type="text"
        />
      </div>
    );
  }

  aa = function (e) {
    console.log(e);
  };

  constructor() {
    super();
    this.state = {};
  }
}

export default EmptyPage;
